home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 March / EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso / earcd / unix / mesaamwn.lha / Mesa-Amiwin / demos / Smakefile < prev    next >
Makefile  |  1995-12-03  |  3KB  |  104 lines

  1. # Makefile for demo programs
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  1.2
  5. # Copyright (C) 1995  Brian Paul  (brianp@ssec.wisc.edu)
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. # $Id: Makefile,v 1.11 1995/10/27 20:58:04 brianp Exp $
  23.  
  24. # $Log: Makefile,v $
  25. # Revision 1.11  1995/10/27  20:58:04  brianp
  26. # added polygon offset demo
  27. #
  28. # Revision 1.10  1995/10/19  18:39:07  brianp
  29. # added gamma demo
  30. #
  31. # Revision 1.9  1995/10/12  18:32:00  brianp
  32. # added osdemo target
  33. #
  34. # Revision 1.8  1995/08/01  21:00:14  brianp
  35. # use $(TK_LIB) and $(AUX_LIB), added gears and shadow demos
  36. #
  37. # Revision 1.7  1995/05/01  15:25:20  brianp
  38. # clean up and reorganize
  39. #
  40. # Revision 1.6  1995/04/20  13:39:05  brianp
  41. # added glxdemo, glxpixmap
  42. # removed accum, prim, stencil
  43. #
  44. # Revision 1.5  1995/03/07  14:27:01  brianp
  45. # added realclean target
  46. #
  47. # Revision 1.4  1995/03/01  21:08:51  brianp
  48. # replaced 'make' with $(MAKE)
  49. #
  50. # Revision 1.3  1995/02/24  16:48:44  brianp
  51. # fixed netbsd CFLAGS
  52. #
  53. # Revision 1.2  1995/02/24  16:26:26  brianp
  54. # added netbsd target
  55. #
  56. # Revision 1.1  1995/02/24  16:23:53  brianp
  57. # Initial revision
  58. #
  59.  
  60.  
  61. ##### MACROS #####
  62.  
  63. INCDIR = /include
  64. GL_LIB = MesaGL.LIB
  65. GLU_LIB = MesaGLU.LIB
  66. TK_LIB = Mesatk.LIB
  67. AUX_LIB = Mesaaux.LIB
  68. XLIBS = X11.LIB
  69. XDIR = x11:sasc
  70.  
  71. NET_INC = netinclude:
  72. NET_LIB = netinclude:/netlib/net.lib
  73.  
  74. GL_LIBS = lib lib:sc.lib+lib:scm881.lib+$(NET_LIB)+$(XDIR)/lib/$(XLIBS)+/lib/$(AUX_LIB)+/lib/$(TK_LIB)+/lib/$(GLU_LIB)+/lib/$(GL_LIB)
  75.  
  76. PROGS = bounce gamma gears glxdemo glxpixmap isosurf offset osdemo shadow \
  77.     spin test0 wave xdemo
  78. CC = sc
  79. SCFLAGS = idir=$(NET_INC) idir=$(INCDIR) idir=$(XDIR)/include data=far idlen=63 \
  80.           nostkchk ignore=a math=68882 cpu=68040 optimize define=AMIWIN
  81.  
  82.  
  83.  
  84. ##### RULES #####
  85.  
  86.  
  87. ##### TARGETS #####
  88.  
  89. default:
  90.     @echo "Specify a target configuration"
  91.  
  92. $(PROGS):
  93.     $(CC) $(SCFLAGS) $(GL_LIBS) link $>.c
  94.  
  95. clean:
  96.     -delete *.o *.lnk *.info
  97.  
  98. realclean:
  99.     -delete $(PROGS)
  100.     -delete *.o *.lnk *.info
  101.  
  102. targets: $(PROGS)
  103.  
  104.